package com.easychat.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @author 10 2024/10/14
 */
@Getter
@AllArgsConstructor
public enum AppUpdateStatusEnum {
     INIT(0,"未发布"),
     GRAYSCALE(1,"灰度发布"),
     ALL(2,"全网发布");

     private Integer status;
     private String description;

     public static AppUpdateStatusEnum getByStatus(Integer status){
          for (AppUpdateStatusEnum value : values()){
               if(value.status.equals(status)){
                    return value;
               }
          }
          return null;
     }




}
